import React from 'react'
import NextLink, { LinkProps } from 'next/link'
import classNames from 'classnames'

interface Props extends LinkProps {
  className?: string;
  children?: React.ReactNode;
}

const Link = ({className, children, ...rest}: Props) => {
  return (
    <NextLink className={classNames(className)} {...rest}>
      {children}
    </NextLink>
  )
}

export default Link